<%@ page language="java" pageEncoding="UTF-8"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>菜单</title>
		<link href="${pageContext.request.contextPath}/css/left.css" rel="stylesheet" type="text/css">
	</head>
	<body>
		<table width="100" border="0" cellspacing="0" cellpadding="0">
		  <tr>
		    <td height="12"></td>
		  </tr>
		</table>
		<table width="100%" border="0">
		  <tr>
		    <td>
				<div class="dtree">
					<a href="javascript: d.openAll();">展开所有</a> | <a href="javascript: d.closeAll();">关闭所有</a>
					<link rel="StyleSheet" href="${pageContext.request.contextPath}/css/dtree.css" type="text/css" />
					<script type="text/javascript" src="${pageContext.request.contextPath}/js/dtree.js"></script>
					<script type="text/javascript">
						//新建一棵树
						d = new dTree('d');
						//设置树的根节点
						//第一个参数:当前节点id
						//第二个参数：父节点id
						//第三个参数：节点的名称
						d.add(0,-1,'系统菜单树');  
						//设置子节点
						//第四个参数：
						//最后一个参数：跳转到的页面位置
						d.add(2,0,'员工管理','userAction_showAllUser.action','','right');  
						//添加子目录
						d.add(3,2,'用户管理','${pageContext.request.contextPath}/user/list.jsp','','right');
						
						document.write(d);
					</script>
				</div>	
			</td>
		  </tr>
		</table>
	</body>
</html>
